<div ng-include="sys_html('layout/_header')"></div>
<style>
.modal-open {
	overflow:hidden
}
.modal {
	position:fixed;
	top:0;
	right:0;
	bottom:0;
	left:0;
	z-index:1050;
	display:none;
	overflow:hidden;
	-webkit-overflow-scrolling:touch;
	outline:0
}
.modal.fade .modal-dialog {
	-webkit-transition:-webkit-transform .3s ease-out;
	-o-transition:-o-transform .3s ease-out;
	transition:transform .3s ease-out;
	-webkit-transform:translate(0,-25%);
	-ms-transform:translate(0,-25%);
	-o-transform:translate(0,-25%);
	transform:translate(0,-25%)
}
.modal.in .modal-dialog {
	-webkit-transform:translate(0,0);
	-ms-transform:translate(0,0);
	-o-transform:translate(0,0);
	transform:translate(0,0)
}
.modal-open .modal {
	overflow-x:hidden;
	overflow-y:auto
}
.modal-dialog {
	position:relative;
	width:auto;
	margin:10px
}
.modal-content {
	position:relative;
	background-color:#fff;
	-webkit-background-clip:padding-box;
	background-clip:padding-box;
	border:1px solid #999;
	border:1px solid rgba(0,0,0,.2);
	border-radius:6px;
	outline:0;
	-webkit-box-shadow:0 3px 9px rgba(0,0,0,.5);
	box-shadow:0 3px 9px rgba(0,0,0,.5)
}
.modal-backdrop {
	position:fixed;
	top:0;
	right:0;
	bottom:0;
	left:0;
	z-index:1040;
	background-color:#000
}
.modal-backdrop.fade {
	filter:alpha(opacity=0);
	opacity:0
}
.modal-backdrop.in {
	filter:alpha(opacity=50);
	opacity:.5
}
.modal-header {
	padding:15px;
	border-bottom:1px solid #e5e5e5
}
.modal-header .close {
	margin-top:-2px
}
.modal-title {
	margin:0;
	line-height:1.42857143
}
.modal-body {
	position:relative;
	padding:15px
}
.modal-footer {
	padding:15px;
	text-align:right;
	border-top:1px solid #e5e5e5
}
.modal-footer .btn+.btn {
	margin-bottom:0;
	margin-left:5px
}
.modal-footer .btn-group .btn+.btn {
	margin-left:-1px
}
.modal-footer .btn-block+.btn-block {
	margin-left:0
}
.modal-scrollbar-measure {
	position:absolute;
	top:-9999px;
	width:50px;
	height:50px;
	overflow:scroll
}
@media (min-width:768px) {
	.modal-dialog {
	width:600px;
	margin:30px auto
}
.modal-content {
	-webkit-box-shadow:0 5px 15px rgba(0,0,0,.5);
	box-shadow:0 5px 15px rgba(0,0,0,.5)
}
.modal-sm {
	width:300px
}
}@media (min-width:992px) {
	.modal-lg {
	width:900px
}
}
.order-detail-page .result-list i {
    font-size: 18px;
}
.fui-footer .btn {
    margin-top: .6rem;
}
	.order_detail .fui-list-inner .title.has-address {
		font-size: .7rem;
		line-height: 1.2rem;
		height: 1.2rem;
		display: block;
	}
	.order_detail .fui-list-inner .text{
		white-space: nowrap;
		text-overflow: ellipsis;
		overflow: hidden;
	}
	.order_detail .fui-list:before{
		border: 0;
	}
	.order_detail .fui-list_title{
		position: relative;
		display: flex;
		align-items: center;
		line-height: normal;
	}
	/*.order_detail .fui-list_title:before{*/
		/*content: " ";*/
		/*position: absolute;*/
		/*left: 0.5rem;*/
		/*right: 0.5rem;*/
		/*bottom: 0;*/
		/*height: 1px;*/
		/*border-top: 1px solid #ebebeb;*/
		/*color: #D9D9D9;*/
		/*-webkit-transform-origin: 0 0;*/
		/*-ms-transform-origin: 0 0;*/
		/*transform-origin: 0 0;*/
		/*-webkit-transform: scaleY(0.5);*/
		/*-ms-transform: scaleY(0.5);*/
		/*transform: scaleY(0.5);*/
	/*}*/
	.order_detail  .lineblock {
		position: relative;
		overflow: hidden;
	}
	.order_detail  .lineblock:before {
		content: "";
		position: absolute;
		left: .5rem;
		top: 0;
		right: .5rem;
		height: 1px;
		border-top: 1px solid #ebebeb;
		-webkit-transform-origin: 0 100%;
		-ms-transform-origin: 0 100%;
		transform-origin: 0 100%;
		-webkit-transform: scaleY(0.5);
		-ms-transform: scaleY(0.5);
		transform: scaleY(0.5);
	}
</style>
<div class="ncm-container">
	<div ng-include="sys_html('layout/member/left-layout')"></div>
    <div class="right-layout">
        <div class="wrap">
<div ng-include="sys_html('layout/member/tabmenu')"></div>
            <div class='fui-page order-detail-page'>
                <div class='fui-content navbar'>
                    <div class="order_header" style="padding: 15px;background:red;">
					  <div class="red" style="width:36px;margin:0 auto">
						<i ng-if="pagedata.order.status == 0" class="icon icon-wrong" style="font-size:36px;color:#fff"></i>
						<i ng-if="pagedata.order.status == 4" class="icon icon-wrong" style="font-size:36px;color:#fff"></i>
						<i ng-if="pagedata.order.status == 3" class="icon icon-success" style="font-size:36px;color:#fff"></i>
						<i ng-if="pagedata.order.status == 2 || pagedata.order.status == 1" class="icon icon-clock" style="font-size:36px;color:#fff"></i>
					  </div>
					  <div class="order_detail_ststus" style="padding:0.3rem;background:none">
							<div class="bold c">
								<div style="text-align:center;font-size: 0.85rem;color:#fff">{{pagedata.order.statustitle}}</div>
							</div>
							<div class="subtitle c" style="text-align:center;color:#fff">{{pagedata.order.statusdesc}}</div>
					  </div>
					</div>
                   
                    <div ng-if="pagedata.address" class='fui-list-group' style='margin-top:5px;'>
                        <a ng-if="pagedata.status>1" href="javascript:;" ng-click="access_json('jy_weishop/order.express//id='+pagedata.order.id)">
                            <div class='fui-list'>
                                <div class='fui-list-media'><i class='icon icon-deliver'></i></div>
                                <div class='fui-list-inner'>
                                    
                                    <div ng-if="!pagedata.express" class='text'><span>快递公司:{{pagedata.order.expresscom}}</span></div>
                                    <div ng-if="!pagedata.express" class='text'><span>快递单号:{{pagedata.order.expresssn}}</span></div>
                                 
                                    <div ng-if="pagedata.express" class='text'><span class='text-danger'>{{pagedata.express.step}}</span></div>
                                    <div ng-if="pagedata.express" class='text'><span class='text-danger'>{{pagedata.express.time}}</span></div>
                                   
                                </div>
                                <div class='fui-list-angle'><span class='angle'></span></div>
                            </div>
                        </a>
                   
                        <div class='fui-list'>
                            <div class='fui-list-media'><i class='icon icon-location'></i></div>
                            <div class='fui-list-inner'>
                                <div class='title'>{{pagedata.address.name}}{{pagedata.address.mobile}}</div>
                                <div class='text'>{{pagedata.address.pcd.province}}{{pagedata.address.pcd.city}}{{pagedata.address.pcd.district}}{{pagedata.address.address}}</div>
                            </div>
                        </div>
                    </div>
                 
                  
                    <div ng-if="pagedata.carrier || pagedata.store" class='fui-list-group' style='margin-top:5px;'>
                        <div class='fui-list'>
                            <div class='fui-list-media'><i class='icon icon-person2'></i></div>
                            <div class='fui-list-inner'>
                                <div class='title'>{{pagedata.carrier.carrier_realname}}{{pagedata.carrier.carrier_mobile}}</div>
                            </div>
                        </div>
                        <div ng-if="pagedata.store" class="fui-list store-item" >
                            <div class="fui-list-media">
                                <i class='icon icon-shop'></i>
                            </div>
                            <div class="fui-list-inner store-inner" style="border-right: 0 solid #d9d9d9;">
                                <div class="title"> <span class='storename'>{{pagedata.store.title}}</span></div>
                                <a class="text" href="tel:{{pagedata.store.tel}}">
                                    <span class='realname'>{{pagedata.store.realname}}</span> <span class='mobile'>{{pagedata.store.mobile}} <i class=' icon icon-phone' style='color:green'></i></span>
                                </a>
                                <a class="text" href="javascript:;" ng-click="access_json('jy_weishop/store.map//id='+pagedata.store.id+'&merchid='+pagedata.store.merchid)">
                                    <span class='address'>{{pagedata.store.address}} <i class='icon icon-location' style='color:#f90'></i></span>
                                </a>
                            </div>
                        </div>
                    
                    </div>
                    <div class="fui-list-group goods-list-group">
                        <div class="fui-list-group-title"><i class="icon icon-shop"></i>{{pagedata.shopname}}</div>
                      
						<div ng-repeat="g in pagedata.goods">
                        
                        <a href="javascript:;" ng-click="access_json('jy_weishop/goods.detail//id='+g.id)">
                            <div class="fui-list goods-list">
                                <div class="fui-list-media">
                                    <img ng-src="{{tomedia(g.image)}}" class="round">
                                </div>
                                <div class="fui-list-inner">
                                    <div class="text goodstitle">{{g.title}}</div>
                                   <div ng-if="g.optionid" class='subtitle'>{{g.optiontitle}}</div>
                                </div>
                                <div class='fui-list-angle'>
                                    ￥<span class='marketprice'>{{g.totalprice || '0.00'}}<br/>   x{{g.total}}
                                </div>
                            </div>
                        </a>
                        
                        <div ng-if="g.diyformdata && g.diyformdata != 'false'" class="fui-list">
                            <div class="fui-list-inner">
                                <div class="text text-right">
                                    <div class="btn btn-default btn-sm look-diyinfo" hide="1" data="{$i}">查看提交的资料</div>
                                </div>
                            </div>
                        </div>
                        <div class="fui-cell-group price-cell-group diyinfo_{$i}" style="display: none;">
                            
                          
                            <div ng-repeat="(key,value) in g.diyformfields" class="fui-cell" >
                                <div class="fui-cell-label">{{value.tp_name}}</div>
                                <div class="fui-cell-info"></div>
                                <div class="fui-cell-remark noremark">{template 'diyform/mdiyform'}</div>
                            </div>
                        </div>
                      
                        {{g.i}}
                       
						</div>
                    </div>
                    <div ng-if="pagedata.order.virtual && pagedata.order.virtual_str" class='fui-according-group'>
                        <div class='fui-according expanded'>
                            <div class='fui-according-header'>
                                <i class='icon icon-productfeatures'></i>
                                <span class="text">发货信息</span>
                                <span class="remark"></span>
                            </div>
                            <div class="fui-according-content">
                                <div class='content-block'>
                                    {{pagedata.order.virtual_str}}
                                </div>
                            </div>
                        </div></div>
                  
                    <div ng-if="pagedata.order.isvirtualsend && pagedata.order.virtualsend_info"  class='fui-according-group'>
                        <div class='fui-according expanded'>
                            <div class='fui-according-header'>
                                <i class='icon icon-productfeatures'></i>
                                <span class="text">发货信息</span>
                                <span class="remark"></span>
                            </div>
                            <div class="fui-according-content">
                                <div class='content-block'>
                                    {{pagedata.order.virtualsend_info}}
                                </div>
                            </div>
                        </div></div>
         
                    <div ng-if="pagedata.order_verify" class="{'fui-according-group verify-container':1,'expanded':pagedata.order_verify.length<=3}">
                        <div class='fui-according'>
                            <div class='fui-according-header' style="width:auto">
                                <i class='icon icon-list'></i>
                                <span class="text">{{ifelse(pagedata.order.dispatchtype,'自提码','消费码')}}</span>
                                <span class=""><div class="badge">{{pagedata.order_verify.length}}</div></span>
                            </div>
                            <div class="fui-according-content verifycode-container" style="height:auto">
                              
                                <div ng-if="pagedata.order.status>0" class='fui-cell-group'>
                                    <div ng-repeat="v in pagedata.order_verify" class='fui-cell verify-cell'>
                                        <div class='fui-cell-label' style='width:auto'>
                                            {{v.verify_code}}
                                        </div>
                                        <div class='fui-cell-info'></div>
                                        <div class='fui-cell-remark noremark'>
                                      
                                            <div ng-if="v.status==1" class='fui-label fui-label-danger' >已使用</div>
                                            <div ng-if="v.status==2" class='fui-label fui-label-default' >未取货</div>
                                            <div ng-if="v.verify_num>0" class='fui-label fui-label-default' >剩余{{v.verify_num}} 次</div>
                                            <div ng-if="v.status==0" class='fui-label fui-label-default' >未使用</div>
                                        
                                        </div>
                                    </div>
                                
                                </div>
                               
                                <div ng-if="pagedata.order.status<=0" class='fui-cell-group'>
                                    <div class='fui-cell verify-cell'>
                                        <div class='fui-cell-label' style='width:auto;color: #ff0011;'>
                                            付款后可见!
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                                    
                    <script language='javascript' src='http://api.map.baidu.com/api?v=2.0&ak=ZQiFErjQB7inrGpx27M1GR5w3TxZ64k7'></script>
                    <div ng-if="pagedata.stores" class='fui-according-group'>
                        <div class='fui-according'>
                            <div class='fui-according-header'>
                                <i class='icon icon-shop'></i>
                                <span class="text">适用门店</span>
                                <span class="remark"><div class="badge">{{pagedata.stores_count}}</div></span>
                            </div>
                            <div class="fui-according-content store-container" style="height:auto">
                               
                                <div ng-repeat="item in pagedata.stores" class="fui-list store-item">
                                    <div class="fui-list-media">
                                        <i class='icon icon-shop'></i>
                                    </div>
                                    <div class="fui-list-inner store-inner" style="border-right: 0 solid #d9d9d9;">
                                        <div class="title"> <span class='storename'>{{item.storename || '平台自营'}}</span></div>
                                        <a class="text" href="javascript:;" ng-click="access_json('jy_weishop/store.map//id='+item.id+'&merchid='+item.merchid)">
                                            地址: <span class='realname'>{{item.address}} <i class='icon icon-map' style='color:#f90'></i></span>
                                        </a>
                                        <a class="text"  href="tel:{{item.tel}}">
                                            电话: <span class='address'>{{item.tel || '该店无电话'}} <i class=' icon icon-phone' style='color:green'></i></span>
                                        </a>
                                        <div class="text location" style="color:green;display:none">正在计算距离...</div>
                                    </div>
                                </div>
                               
                            </div>
                            <div id="nearStore" style="display:none">
                                <div class='fui-list store-item'  id='nearStoreHtml'></div>
                            </div>
                        </div></div>
                   
                    <div class='fui-cell-group price-cell-group'>
                        <div class="fui-cell">
                            <div class="fui-cell-label">商品小计</div>
                            <div class="fui-cell-info"></div>
                            <div class="fui-cell-remark noremark">￥{{pagedata.order.goodsprice}}</div>
                        </div>
                        <div class="fui-cell">
                            <div class="fui-cell-label">运费</div>
                            <div class="fui-cell-info"></div>
                            <div class="fui-cell-remark noremark">￥{{pagedata.order.dispatchprice}}</div>
                        </div>
                      
                        <div ng-if="pagedata.order.enough_de_price>0" class="fui-cell">
                            <div class="fui-cell-label">满额立减</div>
                            <div class="fui-cell-info"></div>
                            <div class="fui-cell-remark noremark">-￥{{pagedata.order.enough_de_price}}</div>
                        </div>
                   
                        <div ng-if="pagedata.order.couponprice>0" class="fui-cell">
                            <div class="fui-cell-label"  style='width:auto;'>优惠券优惠</div>
                            <div class="fui-cell-info"></div>
                            <div class="fui-cell-remark noremark">-￥{{pagedata.order.couponprice}}</div>
                        </div>
                    
                   
                        <div ng-if="pagedata.order.discountprice>0" class="fui-cell">
                            <div class="fui-cell-label">会员优惠</div>
                            <div class="fui-cell-info"></div>
                            <div class="fui-cell-remark noremark">-￥{{pagedata.order.discountprice}}</div>
                        </div>
                       
                      
                        <div ng-if="pagedata.order.isdiscountprice>0" class="fui-cell">
                            <div class="fui-cell-label">促销优惠</div>
                            <div class="fui-cell-info"></div>
                            <div class="fui-cell-remark noremark">-￥{{pagedata.order.isdiscountprice}}</div>
                        </div>
                      
                      
                        <div ng-if="pagedata.order.deductprice>0" class="fui-cell">
                            <div class="fui-cell-label">积分抵扣</div>
                            <div class="fui-cell-info"></div>
                            <div class="fui-cell-remark noremark">-￥{{pagedata.order.deductprice}}</div>
                        </div>
                    
                       
                        <div ng-if="pagedata.order.deductcredit2>0" class="fui-cell">
                            <div class="fui-cell-label">{{pagedata.set.moneytext}}抵扣</div>
                            <div class="fui-cell-info"></div>
                            <div class="fui-cell-remark noremark">-￥{{pagedata.order.deductcredit2}}</div>
                        </div>
                    
                        <div class="fui-cell">
                            <div class="fui-cell-label" style='width:auto;'>实付费(含运费)</div>
                            <div class="fui-cell-info"></div>
                            <div class="fui-cell-remark noremark"><span class='text-danger'>￥<span style='font-size:.8rem'>{{pagedata.order.price}}</span></span></div>
                        </div>
                    </div>
                    <div class="fui-cell-group info-cell-group">
                        <div class="fui-cell">
                            <div class="fui-cell-label">订单编号:</div>
                            <div class="fui-cell-info">{{pagedata.order.ordersn}}</div>
                        </div>
                        <div class="fui-cell">
                            <div class="fui-cell-label">创建时间:</div>
                            <div class="fui-cell-info">{{pagedata.order.createtime}}</div>
                        </div>
                      
                        <div ng-if="pagedata.order.status>=1 && pagedata.order.paytime>0" class="fui-cell">
                            <div class="fui-cell-label">支付时间: </div>
                            <div class="fui-cell-info">{{pagedata.order.paytime}}</div>
                        </div>
                     
                     
                        <div ng-if="pagedata.order.sendtime" class="fui-cell">
                            <div class="fui-cell-label">发货时间: </div>
                            <div class="fui-cell-info">{{pagedata.order.sendtime}}</div>
                        </div>
                      
                        <div ng-if="pagedata.order.status==3" class="fui-cell">
                            <div class="fui-cell-label">完成时间: </div>
                            <div class="fui-cell-info">{{pagedata.order.finishtime}}</div>
                        </div>
                       
                    </div>
                  
                    <div ng-if="!pagedata.order_fields &&pagedata.order_data" class="fui-list-group goods-list-group">
                        <div class='fui-cell-group price-cell-group'>
                           <!-- {php $datas = $order_data} -->
                       
                            <div ng-repeat="(key,value) in pagedata.order_fields" class="fui-cell">
                                <div class="fui-cell-label">{{value.tp_name}}</div>
                                <div class="fui-cell-info"></div>
                                <div class="fui-cell-remark noremark">{template 'diyform/mdiyform'}</div>
                            </div>
                          
                        </div>
                    </div>
					<div class="fui-list-group" style="text-align: right;padding:10px">
								<div ng-show="pagedata.order.userdeleted!=1 && pagedata.order.status==0" ng-click="pagedata.checkcancel=true" class="btn btn-sm btn-default-o order-cancel">取消订单</div>
								<a ng-show="pagedata.order.userdeleted!=1 && pagedata.order.status==0 && pagedata.order.paytype!=3 && !pagedata.ispeerpay" class="btn btn-sm btn-red-o"  ng-click="pagedata.pay_submit({},'//setpay/id='+pagedata.order.id)">支付订单</a>
								<a ng-show="(pagedata.order.userdeleted!=1 && pagedata.order.status==0) && (pagedata.order.paytype==3 || pagedata.ispeerpay)" class="btn btn-sm btn-red-o"  ng-click="pagedata.pay_submit({},'//setpay/id='+pagedata.order.id)">代付订单</a>	
								<div ng-show="pagedata.order.status==3 || pagedata.order.status==-1" class="btn btn-sm btn-default-o order-delete" href="javascript:" ng-click="post({},'delete','id='+pagedata.order.id)">删除订单</div>
							<!--	<a ng-show="pagedata.order.status==3 || pagedata.order.iscomment==1" class="btn btn-sm btn-default-o" href="javascript:" ng-click="access_json('jy_weishop/order.comment/comment/id='+pagedata.order.id)">追加评价</a> -->
									<a ng-show="!pagedata.activity && !pagedata.order.refundstate && pagedata.order.status>0 && pagedata.order.isshare == 0" data-nocache="true" class="btn btn-sm btn-default-o" href="javascript:" ng-click="access('jy_weishop/coupon.index/')">领取优惠券</a>
								<div  ng-show="pagedata.order.sendtype==1 && pagedata.order.status==2 && !pagedata.order.refundstate" class="btn btn-sm btn-default-o order-finish" href="javascript:" ng-click="post({},'confirm','id='+pagedata.order.id)">确认收货</div>
					
								<a ng-show="pagedata.order.status==5"  class="btn btn-sm btn-default-o" href="javascript:" ng-click="access_json('jy_weishop/order.refund/list/orderid='+pagedata.order.id)">查看退款进度</a>
								<a ng-show="pagedata.order.can_refund"  class="btn btn-sm btn-default-o" href="javascript:" ng-click="access_json('jy_weishop/order.refund/apply/orderid='+pagedata.order.id)" >申请退款</a>
								<!--<a ng-show="pagedata.order.canrefund && pagedata.order.status!=1" data-nocache="true" class="btn btn-sm btn-default-o" href="javascript:" ng-click="access_json('jy_weishop/order.refund//id='+pagedata.order.id)" >申请售后</a>-->
								<a ng-show="pagedata.order.refundstate > 0 && pagedata.refund.status!=5" class='btn btn-sm btn-default-o btn-cancel'>取消申请</a>
							<div ng-show="pagedata.order.userdeleted==1" class="btn btn-sm btn-default-o order-deleted" href="javascript:" ng-click="post({},'rdelete','id='+pagedata.order.id)">彻底删除订单</div>
							<div ng-show="pagedata.order.userdeleted==1" class="btn btn-sm btn-default-o order-recover" href="javascript:" ng-click="post({},'reset','id='+pagedata.order.id)">恢复订单</div>
						
					</div>
					<div ng-include="sys_html('layout/_copyright')"></div>
                  
                </div>
              
				
			<div ng-if="pagedata.order.canverify" ng-include="sys_html('order/verify')"></div>
             
                <div class='fui-footer' ng-if="pagedata.showdeleted">
                    <div ng-if="pagedata.order.userdeleted==0 && pagedata.order.status==0" href="javascript:" ng-click="post({},'cancel','id='+pagedata.order.id)" class="btn btn-default btn-default-o order-cancel">取消订单
                        <select data-orderid="{{pagedata.order.id}}">
                            <option value="">不取消了</option>
                            <option value="我不想买了">我不想买了</option>
                            <option value="信息填写错误，重新拍">信息填写错误，重新拍</option>
                            <option value="同城见面交易">同城见面交易</option>
                            <option value="其他原因">其他原因</option>
                        </select>
                    </div>
                    
                  
                    <a ng-if="pagedata.order.userdeleted==0 && pagedata.order.paytype!=3" class="btn btn-danger" href="javascript:" ng-click="post({},'setpay','id='+pagedata.order.id)">支付订单</a>
                  
               
                   
                    <div ng-if="pagedata.order.userdeleted==0 && pagedata.order.canverify && pagedata.order.status!=-1 && pagedata.order.status!=0" class="btn btn-default btn-default-o pull-left order-verify" data-orderid="{$order['id']}" data-verifytype="{$order['verifytype']}" style="margin-left:.5rem;" >
                        <i class="icon icon-qrcode"></i>
                        <span>{{ifelse(pagedata.order.dispatchtype,'我要取货','我要使用')}}</span>
                    </div>
                 
                   
                    <div ng-if="pagedata.order.userdeleted==0 && (pagedata.order.status==3 || pagedata.order.status==-1)" class="btn btn-default btn-default-o order-delete" href="javascript:" ng-click="post({},'delete','id='+pagedata.order.id)">删除订单</div>
              
               <!--     {if $order['status']==3 && $order['iscomment']==1}
                    <a class="btn btn-default btn-default-o" href="{php echo mobileUrl('pc.order/comment',array('id'=>$order['id']))}">追加评价</a>
                    {/if}
                    {if $order['status']==3 && $order['iscomment']==0 && empty($_W['shopset']['trade']['closecomment'])}
                    <a class="btn btn-default btn-default-o" href="{php echo mobileUrl('pc.order/comment',array('id'=>$order['id']))}">评价</a>
                    {/if}-->
                   
                    <div ng-if="pagedata.order.userdeleted==0 && pagedata.order.status==2" class="btn btn-default btn-default-o order-finish" href="javascript:" ng-click="post({},'confirm','id='+pagedata.order.id)">确认收货</div>
                   
                  
                    <a ng-if="pagedata.order.userdeleted==0 && pagedata.order.canrefund" data-nocache="true" class="btn btn-default" href="javascript:" ng-click="access_json('jy_weishop/order.refund//id='+pagedata.order.id)">{{ifelse(pagedata.order.status==1,'申请退款','申请售后')}}{{ifelse(!empty(pagedata.order.refundstate,'中',''))}}</a>
       
                    
                    <a ng-if="pagedata.order.userdeleted==0 && pagedata.order.refundstate>0 && pagedata.refund.status!=5" class='btn btn-default-o btn-cancel'>取消申请</a>
                 
                
                    <div ng-if="pagedata.order.userdeleted==1" class="btn btn-default btn-default-o order-deleted" href="javascript:" ng-click="post({},'rdelete','id='+pagedata.order.id)">彻底删除订单</div>
                    <div ng-if="pagedata.order.userdeleted==1" href="javascript:" ng-click="post({},'reset','id='+pagedata.order.id)" class="btn btn-default btn-default-o order-recover">恢复订单</div>
                
                </div>
            </div>
        </div>
    </div>
</div>
<div ng-include="sys_html('layout/_footer')"></div>
<script language='javascript'>
scope.pagedata.pay_submit=function(post,post_url){
	scope.post_json(post_url,post,function(pay_id){
		require(['jinyun_socket'],function(jinyun_socket){
					jinyun_socket.connect();
					jinyun_socket.onsystem=function(res){
						$('#core-pay-modal').modal('hide');
						scope.message('支付成功！','success','jy_weishop/order.list//fromcreate=1');
					}
		});
		scope.tool.pay(pay_id,function(res){
		},'',scope.pagedata.forward_url);
	});
}
scope.pagedata.selectstores=function(id){
	console.log('选择门店'+id);
	scope.pagedata.post.storeid = id;
	$('#showstores').modal('hide');
}
</script>